package com.zxjbyte.yiyi.server.service.demo.impl;

import cn.hutool.core.thread.ThreadUtil;
import com.google.common.collect.ImmutableMap;
import com.zxjbyte.yiyi.server.service.demo.IDemoService;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author zhangxingjia
 * @Date 2023/7/21 20:21
 * @Version: 1.0
 */
@Service
public class DemoServiceImpl implements IDemoService {

    @Override
    public Map<String, Object> demoGetParam(Long id, String name) {
        // 模拟调用service处理业务
        System.out.println("进行处理业务：" + id + " ==== " + name);
        ThreadUtil.sleep(1000);
        int i = 1/0;
        Map<String, Object> map = new HashMap<>();
        map.put("1", 1L);
        map.put("2", "2");
        return map;
    }
}
